package com.yj.web.service;

import com.yj.web.dao.po.admin.Article;
import com.yj.web.dao.po.admin.Banner;
import com.yj.web.dao.po.admin.CustomerService;
import com.yj.web.dao.po.admin.HelpDoc;

import java.util.List;

/**
 * Created by yanlinyang on 2017/7/4.
 */
public interface OperationService {
    //banner
    public List<Banner> listBanner(String title, Integer type, Integer status, int page, int size);
    public int countBanner(String title, Integer type, Integer status);
    public int deleteBannerById(Integer id);
    public long insertBanner(Banner banner);
    public boolean updateBanner(Banner banner);
    public Banner getBannerById(Integer id);
    public boolean updateBannerStatus(int  id, int  status);
    public int generatePosition(int type);

    //article
    public List<Article> listArticle(String title, Integer status, int page, int size);
    public int countArticle(String title, Integer status);
    public int deleteArticleById(int id);
    public long insertArticle(Article article);
    public boolean updateArticle(Article article);
    public Article getArticleById(Integer id);
    public boolean updateArticleStatus(int  id, int  status);

    //helpDoc
    public List<HelpDoc> listHelpDoc(int page, int size);
    public int countHelpDoc();
    public int deleteHelpDocById(int id);
    public long insertHelpDoc(HelpDoc helpDoc);
    public boolean updateHelpDoc(HelpDoc helpDoc);
    public HelpDoc getHelpDocById(Integer id);
    public boolean updateHelpDocStatus(int id, int status);

    //客服
    public List<CustomerService> listCustomerService(int page, int size);
    public int countCustomerService();
    public CustomerService findCustomerServiceById(String id);
    public CustomerService findCustomerServiceByIdFinished(String id);
    public boolean updateCustomerService(CustomerService service);
}
